<?php
/**
 * Created by PhpStorm.
 * User: Mr.Li <lhb2002@qq.com>
 * Date: 2019/5/28
 * Time: 15:45
 */
namespace LHB_Dycdp\Gateways;

class QueryCdpOfferById extends Gateway
{

    /**
     * 获取当前操作方法
     * @return string
     * User: Mr.Li <lhb2002@qq.com>
     * Date: 2019/5/28
     * Time: 15:47
     */
    public function getAction(): string
    {
        return 'queryCdpOfferById';
    }


    /**
     * 执行处理
     * @return mixed
     * User: Mr.Li <lhb2002@qq.com>
     * Date: 2019/5/28
     * Time: 15:50
     */
    public function handle($query){

        $this->setParameters($query);
        $result = $this->request();

        return $result['FlowOffers']['FlowOffer'];

    }

}